import request from '@/utils/request'

export function editStuScore(data){
  return request({
    url:"/system/sportTest/editStuScore",
    method:"POST",
    data
  })
}

export function importExcel(data){
  return request({
    url:"/system/sportTest/addSrsCourseScore",
    method:"post",
    data:data
  });
}

//连表查询
export function listLeftJoin(query){
  return request({
    url:"/system/score/selectSrsSportTestStudentStuYear",
    method:"get",
    params:query
  });
}

// 查询体能测试列表
export function listSportTest(query) {
  return request({
    url: '/system/sportTest/list',
    method: 'get',
    params: query
  })
}

// 查询体能测试详细
export function getSportTest(id) {
  return request({
    url: '/system/sportTest/' + id,
    method: 'get'
  })
}

// 新增体能测试
export function addSportTest(data) {
  return request({
    url: '/system/sportTest',
    method: 'post',
    data: data
  })
}

// 修改体能测试
export function updateSportTest(data) {
  return request({
    url: '/system/sportTest/update',
    method: 'post',
    data: data
  })
}

// 删除体能测试
export function delSportTest(id) {
  return request({
    url: '/system/sportTest/delete/' + id,
    method: 'post'
  })
}
